package o;

import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Build.VERSION;
import com.huawei.appmarket.R;
import com.huawei.appmarket.service.thirdappdl.ThirdAppDownloadActivityProtocol;
import com.huawei.appmarket.service.thirdappdl.ThirdAppDownloadActivityProtocol.Request;

public class dox implements eov {
    public boolean ॱ(Context context) {
        return VERSION.SDK_INT >= 29 && !ˎ() && ˊ() == 30003300;
    }

    public void ˋ(Context context) {
        if (context != null) {
            cjo thirdAppDownloadActivityProtocol = new ThirdAppDownloadActivityProtocol();
            Request request = new Request();
            request.ॱ("com.huawei.hwid");
            request.ᐝ(context.getResources().getString(R.string.cs_update_title));
            request.ˏ(1);
            request.ˏ(true);
            request.ˋ(30003301);
            thirdAppDownloadActivityProtocol.ˊ(request);
            cjm o_cjm = new cjm("update.hms.activity", thirdAppDownloadActivityProtocol);
            if (!(context instanceof Activity)) {
                o_cjm.ॱ().addFlags(268435456);
            }
            cjk.ˎ().ˋ(context, o_cjm);
        }
    }

    private boolean ˎ() {
        boolean equalsIgnoreCase = "huawei".equalsIgnoreCase(Build.BRAND);
        Logger.ˎ("AccoutLoginInterceptImpl", "Brand: " + Build.BRAND);
        if (equalsIgnoreCase) {
            return true;
        }
        equalsIgnoreCase = "huawei".equalsIgnoreCase(Build.MANUFACTURER);
        Logger.ˎ("AccoutLoginInterceptImpl", "Manufacturer: " + Build.MANUFACTURER);
        return equalsIgnoreCase;
    }

    private int ˊ() {
        int ˎ = erz.ˎ(ContentManager.getInstant().getContext(), "com.huawei.hwid");
        Logger.ˎ("AccoutLoginInterceptImpl", "versionCode=" + ˎ);
        return ˎ;
    }
}
